import { createRouter, createWebHashHistory } from 'vue-router'
import Index from '@/views/home/index.vue';

const routes = [
  {
    path: '/:pathMatch(.*)*',
    name: '404',
    component: () => import('@/views/404.vue')
  },
  {
    path: '/',
    name: 'Index',
    component: Index
  },
  {
    path: '/certificate',
    name: 'Certificate',
    component:  () => import('@/views/certificate/index.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
